package com.zhangsr.zus.config.api;

/**
 * @Author: zhangsr
 */
public class AbstractReferenceConfig<T> extends AbstractConfig {

    // 检查服务提供者是否存在
    protected Boolean check;

    // lazy create connection
    protected Boolean lazy;

    // 版本
    protected String version;
    // 服务分组
    protected String group;

    public Boolean isCheck() {
        return check;
    }

    public void setCheck(Boolean check) {
        this.check = check;
    }

    public Boolean getLazy() {
        return lazy;
    }

    public void setLazy(Boolean lazy) {
        this.lazy = lazy;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        checkKey("version", version);
        this.version = version;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        checkKey("group", group);
        this.group = group;
    }

}
